<template>
  <page-body>
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center paysuccess_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub paysuccess_fd0_0'>
          <view class='flex flex-wrap align-center paysuccess_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  paysuccess_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='paysuccess_fd0_0_c1_c0'>购买储物柜</text>
          </view>
          <view class='flex flex-wrap align-center justify-end paysuccess_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction align-center justify-center benben-flex-layout">
        <image class='paysuccess_fd1_0' mode="aspectFill" :src='STATIC_URL+"175.png"'></image>
        <text class='paysuccess_fd1_1'>购买成功</text>
        <text class='paysuccess_fd1_2'>支付方式：{{info.paymentmethod==2 ? '微信' : '支付宝'}}支付</text>
        <text class='paysuccess_fd1_2'>充值金额：{{info.totalprice}}元</text>
        <text class='paysuccess_fd1_2'>购买数量：{{info.number}}个</text>
        <text class='paysuccess_fd1_2'>购买包时: 包月</text>
        <button class='paysuccess_fd1_6' @tap.stop="handleJumpDiy" data-type="switchTab"
          :data-url="`/pages/tabBar/Lockers/Lockers`">返回我的储物箱</button>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </page-body>
</template>
<script>
  export default {
    components: {},


    data() {
      return {
        info: '',
        ordernumber: ''
      };
    },
    computed: {

    },
    watch: {},
    onLoad(options) {
      this.ordernumber = options.ordernumber
      this.getData()
      // this.info = JSON.parse(options.info)
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      getData() {
        this.$api.post(global.apiUrls.post67162dad581f5, {
          ordernumber: this.ordernumber
        }).then(res => {
          if (res.data.code == 1) {
            this.info = res.data.data
          }
        })
      },
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(255, 255, 255, 1);
    background-size: 100% auto;
  }

  .paysuccess_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .paysuccess_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .paysuccess_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .paysuccess_fd0_0_c0 {
    width: 120rpx;
  }

  .paysuccess_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .paysuccess_fd1_6 {
    background: linear-gradient(180deg, #176BE8 0%, #5A5CFC 100%);
    border-radius: 44rpx 44rpx 44rpx 44rpx;
    width: 348rpx;
    line-height: 88rpx;
    font-size: 32rpx;
    color: #fff;
    height: 88rpx;
    margin: 40rpx 0rpx 0rpx 0rpx;
  }

  .paysuccess_fd1_2 {
    color: rgba(102, 102, 102, 1);
    margin: 0rpx 0rpx 16rpx 0rpx;
  }

  .paysuccess_fd1_1 {
    font-size: 32rpx;
    font-weight: 600;
    margin: 0rpx 0rpx 32rpx 0rpx;
  }

  .paysuccess_fd1_0 {
    width: 232rpx;
    height: 232rpx;
    margin: 80rpx 0rpx 50rpx 0rpx;
  }
</style>
